package com.esteel.settlement.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.esteel.settlement.entity.TbSettFund;
import com.esteel.settlement.entity.TbSettFundPK;
import com.esteel.settlement.pa.packet.Answer;
import com.esteel.settlement.vo.FundQueryVo;
import com.esteel.settlement.vo.TbSettFundVo;

/**
 * 客户账号资金信息信息
 * @author zhangxiuzhi
 *
 */
public interface SettFundService {

	public TbSettFund save(TbSettFund tbSettFund);
	
	public List<TbSettFund> selectFund(TbSettFund tbSettFund);
	
	public TbSettFund findOne(TbSettFundPK pk);
	
	/**
	 * 获得手续费账户
	 * @return
	 */
	public TbSettFund findCharges();
	
	/**
	 * 获得利息账户
	 * @return
	 */
	public TbSettFund findAccrual();
	
	/**
	 * 获得清收子账户
	 * @return
	 */
	public TbSettFund findSettlement();
	
	/**
	 * 根据custAcctId查找账户
	 * @param custAcctId
	 * @return
	 */
	public TbSettFund findByCustAcctId(String custAcctId);
	
	/**
	 * 同步资金账户信息
	 * @param custAcctId
	 */
	public  Answer syncFundInfo(String custAcctId);
	
	/**
	 * 按条件查询客户信息
	 * @param vo
	 * @return
	 */
	public Page<TbSettFundVo> findAll(FundQueryVo vo);
}
